//面包屑
const path = ['供应商管理', '采购订单', '采购订单-配件'];
//搜索条件
const filterOption = {
	items: [{
		label: "关键字",
		type: "input",
		data: undefined,
		placeholder: "",
		value: undefined,
		key: "keyWord"
	},
	{
		label: "物料类型",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "deliveryPlatform"
	},
	{
		label: "订单状态",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "orderType"
	},
	{
		label: "加工类型",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "originChannel"
	},
	{
		label: "品类",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "billStatus"
	},
	{
		label: "订单类型",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "isSign"
	},
	{
		label: "交货时间",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "outStorageTime"
	},
	{
		label: "创建日期",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "createTime"
	}],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清除",
			type: "clear"
		}
	],
	close: true
};
//状态类型
const configArr = [
	{
        color: "brown",
        label: "全部订单",
        value: "type1",
        count: 300
    },
    {
        color: "green",
        label: "待接单",
        value: "type2",
        count: 300
    },
	{
	    color: "orange",
	    label: "待处理变更",
	    value: "type2",
	    count: 300
	},
]
//采购单列表
const tableHeaderData = [
	{
		prop:'typeDict.value',
		label:'公司代码',
		width:'120'
	},
	{
		prop:'saleAfterNumber',
		label:'采购组',
		width:'120'
	},
	{
		prop:'customerID',
		label:'订单类型',
		width:'120'
	},
	{
		prop:'customNumber',
		label:'供应商编码',
		width:'120'
	},
	{
		prop:'deliveryPlatform',
		label:'采购数量',
		width:''
	},
	{
		prop:'isSign',
		label:'创建时间',
		width:'200'
	},
	{
		prop:'isInvoice',
		label:'交货时间',
		width:'200'
	},
	{
		prop:'printNo',
		label:'备注',
		width:''
	},
]
//表格数据
const tableData = [];
//分页数据
const paginationObject = {
	currentPage: 1,
	pageSize: 1,
	pageTotal: 1,
	total:1,
	num1:1,
	num2:1
}
let Model = {
	data() {
		return {
			Model: {
				path: path,
				paginationObject,
				configArr,
				filterOption: filterOption,
				tableHeaderData,							//采购单列表（表头）
				tableData,									//采购单列表数据
			}
		}
	}
}
export default Model;
